package wxdb.parse.absyn;
import wxdb.query.*;
import wxdb.symbol.Symbol;

public class DltExp extends Exp{
	public WhereExp where;
	public Symbol tableName;
	
	private String tblname;
	private Predicate pred;
	
	public DltExp(int p,  Symbol t, WhereExp w){
		pos = p;
		tableName = t;
		where = w;
		tblname = tableName.toString();
		
		pred = new Predicate();
		if(w!=null)
			pred = where.whereList().predicate();
	}
	
	public String tableName(){
		return tblname;
	}
	
	public Predicate pred(){
		return pred;
	}
	
	public Predicate predicate() {
		return pred;
	}
}
